home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Games / WarpSCUMM / Install < prev    next >
Text File  |  2002-10-27  |  9KB  |  419 lines

  1. ; $VER: 1.1 Installation script for WarpSCUMM
  2. ; © Adam Waldenberg
  3.  
  4. ; check if we are running under correct OS
  5.  
  6.  
  7. (if (>= (/ (getversion "C:Installer") 65536) 44)
  8.  
  9.     (
  10.         (effect "center" "horizontal" $ddddcc $ffffff)
  11.         (showmedia "pic" "Pictures/WarpSCUMM.jpg" "upper_center" "none" 0)
  12.     )
  13. )
  14.  
  15. (if (< (/ (getversion) 65536) 39)
  16.  
  17.     (
  18.         (abort "Sorry, WarpSCUMM requires AmigaOS V39 or better!")
  19.     )
  20. )
  21.  
  22. ; error handling
  23.  
  24. (onerror
  25.  
  26.     (if (> @ioerr 0)
  27.  
  28.         (
  29.             (message
  30.                 ("An error occurred during installation.")
  31.             )
  32.         )
  33.     )
  34.  
  35.     (exit (quiet))
  36. )
  37.  
  38. (welcome
  39.     "Welcome to the installation of WarpSCUMM, the Amiga ScummVM port."
  40. )
  41.  
  42. (COMPLETE 10)
  43.  
  44. (set #result
  45.     (askchoice
  46.         (prompt "What version of WarpSCUMM do you want to install?")
  47.         (help @askchoice-help)
  48.  
  49.         (choices
  50.             "WarpSCUMM - MC680x0."
  51.             "WarpSCUMM - PPC (WarpOS)."
  52.         )
  53.  
  54.         (default 0)
  55.     )
  56. )
  57.  
  58. (if (= #result 0)
  59.     (
  60.         (set #exever (cat "WarpSCUMM"))
  61.     )
  62.     (
  63.         (set #exever (cat "WarpSCUMM_WOS"))
  64.     )
  65. )
  66.  
  67. (COMPLETE 15)
  68.  
  69. (set #kokodir
  70.     (askdir
  71.         (prompt "Please select where to install WarpSCUMM, a directory will be created.")
  72.         (help @askdir-help)
  73.         (default "Work:")
  74.         (disk)
  75.     )
  76. )
  77.  
  78. (set @default-dest (cat #kokodir))
  79.  
  80. (set #destdir2 (tackon @default-dest "WarpSCUMM"))
  81.  
  82. (copyfiles
  83.     (source "")
  84.     (dest #destdir2)
  85.     (pattern "WarpSCUMM.guide#?")
  86.     (optional "fail")
  87. )
  88.  
  89. (COMPLETE 20)
  90.  
  91. (copyfiles
  92.     (source #exever)
  93.     (dest #destdir2)
  94.     (optional "fail")
  95. )
  96.  
  97. (set #srcdir
  98.     (cat "/" "WarpSCUMM.info")
  99. )
  100.  
  101. (copyfiles
  102.     (source #srcdir)
  103.     (dest @default-dest)
  104.     (optional "fail") )
  105.  
  106. (COMPLETE 30)
  107.  
  108. (set #result
  109.  
  110.     (askoptions
  111.         (prompt "What game-script-icons do you want to install? (Will be put in the game directory "
  112.             "that you will be able to choose for each game, and will execute WarpSCUMM with your "
  113.             "prefered parameters. Icons are in V44+ Colouricon format.)"
  114.         )
  115.  
  116.         (help @askoptions-help)
  117.  
  118.         (choices
  119.             "Indiana Jones and the Last Crusade. (VGA)"
  120.             "Indiana Jones 4 and the Fate of Atlantis."
  121.             "Indiana Jones 4 and the Fate of Atlantis. (Demo)"
  122.             "Zak McKracken and the Alien Mindbenders. (VGA)"
  123.             "The secret of Monkey Island."
  124.             "The secret of Monkey Island. (EGA)"
  125.             "Monkey Island 2: LeChuck's revenge."
  126.             "Day Of The Tentacle."
  127.             "Day Of The Tentacle. (Demo)"
  128.             "Sam & Max."
  129.             "Sam & Max. (Demo)"
  130.             "Full Throttle."
  131.             "Simon The Sorcerer (DOS)"
  132.             "Simon The Sorcerer (Win)"
  133.         )
  134.  
  135.         (default (+ 0))
  136.     )
  137. )
  138.  
  139. (COMPLETE 40)
  140.  
  141. (if (<> (IN #result 0 1 2 3 4 5 6 7 8 9 10 11 12 13) 0)
  142.     (set #fullscreen
  143.         (askbool
  144.             (prompt "What type of mode do you want to run the game(s) in?")
  145.             (help "For fullscreen mode a 320x200x8 display is recommended!")
  146.  
  147.             (choices
  148.  
  149.                 "Window mode."
  150.                 "Fullscreen mode."
  151.             )
  152.  
  153.             (default 1)
  154.         )
  155.     )
  156. )
  157.  
  158. (if (<> (IN #result 0 1 2 3 4 5 6 7 8 9 10 11 12 13) 0)
  159.     (set #gfxmode
  160.         (askchoice
  161.             (prompt "What graphics mode do you want to run the games in?")
  162.         (help "Normal, Double and Tripple are ordinary 8bit modes "
  163.                   "while the others use a 16bit screen.")
  164.  
  165.             (choices
  166.  
  167.                 "Normal."
  168.                 "Double. (2x2)"
  169.                 "Tripple. (3x3)"
  170.                 "2xSai (16bit)"
  171.         "Super2xSai. (16bit)"
  172.         "SuperEagle. (16bit)"
  173.         "AdvMame2x. (16bit)"
  174.             )
  175.         )
  176.     )
  177. )
  178.  
  179. (if (= #fullscreen 0)
  180.     (
  181.         (set #fullscreen (cat " -f"))
  182.     )
  183.     (
  184.         (set #fullscreen (cat ""))
  185.     )
  186. )
  187.  
  188. (select (IN #gfxmode 0 1 2 3 4 5 6)
  189.     ((set #gfxmode (cat " -gnormal ")))
  190.     ((set #gfxmode (cat " -g2x ")))
  191.     ((set #gfxmode (cat " -g3x ")))
  192.     ((set #gfxmode (cat " -g2xsai ")))
  193.     ((set #gfxmode (cat " -gsuper2xsai ")))
  194.     ((set #gfxmode (cat " -gsupereagle ")))
  195.     ((set #gfxmode (cat " -gadvmame2x ")))
  196. )
  197.  
  198. (set #xtra (cat "xtra"))
  199.  
  200. (procedure set_game
  201.     (
  202.     (set #destdir
  203.         (askdir
  204.             (prompt "Where is " #name " installed? (The icon will be copied into the chosen directory.)")
  205.             (help @askdir-help)
  206.             (default "Work:")
  207.             (disk)
  208.         )
  209.     )
  210.  
  211.     (set #dirandexe (tackon #destdir2 #exever))
  212.     (set #dirandicon (tackon #destdir #icon))
  213.     (set #dirandiconinfo (cat #dirandicon ".info"))
  214.  
  215.     (set #srciconinfo (cat "Icons/" #icon ".info"))
  216.  
  217.     (set #iconx
  218.         (cat #dirandexe #fullscreen #gfxmode #game)
  219.     )
  220.  
  221.     )
  222.  
  223.     (textfile
  224.         (dest (cat #dirandicon))
  225.         (append #iconx)
  226.     )
  227.  
  228.     (copyfiles
  229.         (source #srciconinfo)
  230.         (dest #destdir)
  231.         (optional "fail")
  232.     )
  233. )
  234.  
  235. (COMPLETE 53)
  236.  
  237. ; Indiana Jones and the Last Crusade. (VGA)
  238.  
  239. (if (<> (IN #result 0) 0)
  240.     (
  241.         (set #icon (cat "Indy3"))
  242.         (set #game (cat "indy3"))
  243.         (set #name (cat "Indiana Jones and the Last Crusade (VGA)"))
  244.         (set_game)
  245.     )
  246. )
  247.  
  248.  
  249. (COMPLETE 56)
  250.  
  251. ; Indiana Jones 4 and the Fate of Atlantis.
  252.  
  253. (if (<> (IN #result 1) 0)
  254.     (
  255.         (set #icon (cat "Atlantis"))
  256.         (set #game (cat "atlantis"))
  257.         (set #name (cat "Indiana Jones 4 and the Fate of Atlantis"))
  258.         (set_game)
  259.     )
  260. )
  261.  
  262. (COMPLETE 59)
  263.  
  264. ; Indiana Jones 4 and the Fate of Atlantis. (Demo)
  265.  
  266. (if (<> (IN #result 2) 0)
  267.     (
  268.         (set #icon (cat "Atlantis"))
  269.         (set #game (cat "playfate"))
  270.         (set #name (cat "Indiana Jones 4 and the Fate of Atlantis (Demo)"))
  271.         (set_game)
  272.     )
  273. )
  274.  
  275. (COMPLETE 62)
  276.  
  277. ; Zak McKracken and the Alien Mindbenders. (VGA)
  278.  
  279. (if (<> (IN #result 3) 0)
  280.     (
  281.         (set #icon (cat "ZakMcKracken"))
  282.         (set #game (cat "zak256"))
  283.         (set #name (cat "Zak McKracken and the Alien Mindbenders (VGA)"))
  284.         (set_game)
  285.     )
  286. )
  287.  
  288. (COMPLETE 65)
  289.  
  290. ; The secret of Monkey Island.
  291. (if (<> (IN #result 4) 0)
  292.     (
  293.         (set #icon (cat "MonkeyIsland"))
  294.         (set #game (cat "monkey"))
  295.         (set #name (cat "The secret of Monkey Island"))
  296.         (set_game)
  297.     )
  298. )
  299.  
  300. (COMPLETE 68)
  301.  
  302. ; The secret of Monkey Island. (EGA)
  303. (if (<> (IN #result 5) 0)
  304.     (
  305.         (set #icon (cat "MonkeyIsland"))
  306.         (set #game (cat "monkeyEGA"))
  307.         (set #name (cat "The secret of Monkey Island. (EGA)"))
  308.         (set_game)
  309.     )
  310. )
  311.  
  312. (COMPLETE 71)
  313.  
  314. ; Monkey Island 2: LeChuck's revenge.
  315. (if (<> (IN #result 6) 0)
  316.     (
  317.         (set #icon (cat "MonkeyIsland2"))
  318.         (set #game (cat "monkey2"))
  319.         (set #name (cat "Monkey Island 2: LeChuck's revenge"))
  320.         (set_game)
  321.     )
  322. )
  323.  
  324. (COMPLETE 74)
  325.  
  326. ; Day Of The Tentacle.
  327. (if (<> (IN #result 7) 0)
  328.     (
  329.         (set #icon (cat "Tentacle"))
  330.         (set #game (cat "tentacle"))
  331.         (set #name (cat "Day Of The Tentacle"))
  332.         (set_game)
  333.     )
  334. )
  335.  
  336. (COMPLETE 77)
  337.  
  338. ; Day Of The Tentacle. (Demo)
  339. (if (<> (IN #result 8) 0)
  340.     (
  341.         (set #icon (cat "Tentacle"))
  342.         (set #game (cat "dottdemo"))
  343.         (set #name (cat "Day Of The Tentacle. (Demo)"))
  344.         (set_game)
  345.     )
  346. )
  347.  
  348. (COMPLETE 80)
  349.  
  350. ; Sam & Max.
  351. (if (<> (IN #result 9) 0)
  352.     (
  353.         (set #icon (cat "Sam&Max"))
  354.         (set #game (cat "samnmax"))
  355.         (set #name (cat "Sam & Max"))
  356.         (set_game)
  357.     )
  358. )
  359.  
  360. (COMPLETE 87)
  361.  
  362. ; Sam & Max. (Demo)
  363. (if (<> (IN #result 10) 0)
  364.     (
  365.         (set #icon (cat "Sam&Max"))
  366.         (set #game (cat "snmdemo"))
  367.         (set #name (cat "Sam & Max. (Demo)"))
  368.         (set_game)
  369.     )
  370. )
  371.  
  372. (COMPLETE 92)
  373.  
  374. ; Full Throttle.
  375. (if (<> (IN #result 11) 0)
  376.     (
  377.         (set #icon (cat "FullThrottle"))
  378.         (set #game (cat "ft"))
  379.         (set #name (cat "Full Throttle"))
  380.         (set_game)
  381.     )
  382. )
  383.  
  384.  
  385. (COMPLETE 95)
  386.  
  387. ;Simon The Sorcerer (DOS)
  388. (if (<> (IN #result 12) 0)
  389.    (
  390.         (set #icon (cat "Simon"))
  391.         (set #game (cat "simon1dos"))
  392.         (set #name (cat "Simon The Sorcerer (DOS)"))
  393.         (set_game)
  394.    )
  395. )
  396.  
  397.  
  398. (COMPLETE 100)
  399.  
  400. ;Simon The Sorcerer (Win)
  401. (if (<> (IN #result 13) 0)
  402.     (
  403.         (set #icon (cat "Simon"))
  404.         (set #game (cat "simon1win"))
  405.         (set #name (cat "Simon The Sorcerer (Win)"))
  406.         (set_game)
  407.     )
  408. )
  409.  
  410.  
  411. (if (<> (IN #result 0 1 2 3 4 5 6 7 8 9 10 11 12 13) 0)
  412.     (message (all) "If you want to set further variables, "
  413.              "you can configure the scripts by hand... Consult the "
  414.              "amigaguide file for an explanation of everything, or "
  415.              "simply write \"" (tackon #destdir2 #exever) 
  416.          " -h\" in a shell.")
  417. )
  418. (exit)
  419.